<?php
/**
 * Model for server-specific MySQL queries
 */
class MySQLServerQuery extends AbstractSQLServerQuery {	
	/**
	 * Gets list of databases on server.
	 * 
	 * @return string
	 */
	public function getDatabases() {
		return "SHOW DATABASES";
	}
	
	/**
	 * Gets list of processes on server.
	 * 
	 * @return string
	 */
	public function getProcesses() {
		return "SHOW FULL PROCESSLIST";
	}
	
	/**
	 * Kills process on server.
	 * 
	 * @param integer $intProcessId
	 * @return string
	 */
	public function killProcess($intProcessId) {
		return "KILL ".$intProcessId;
	}
}